import config from "@/config"
import http from "@/utils/request"

export default {
    page: {
        url: `${config.API_URL}/business/articleExpert/page`,
        name: "分页列表",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    managerPage: {
        url: `${config.API_URL}/business/articleExpert/managerPage`,
        name: "接审专家管理列表",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    list: {
        url: `${config.API_URL}/business/articleExpert/list`,
        name: "全部列表",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    detail: {
        url: `${config.API_URL}/business/articleExpert/detail`,
        name: "详情",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    isCheck: {
        url: `${config.API_URL}/business/articleExpert/isCheck`,
        name: "详情",
        get: async function (params) {
            return await http.get(this.url, params);
        }
    },
    add: {
        url: `${config.API_URL}/business/articleExpert/add`,
        name: "新增",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    update: {
        url: `${config.API_URL}/business/articleExpert/update`,
        name: "修改",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    refuse: {
		url: `${config.API_URL}/business/articleExpert/refuse`,
		name: "拒绝",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
    accept: {
		url: `${config.API_URL}/business/articleExpert/accept`,
		name: "接收",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
    delete: {
        url: `${config.API_URL}/business/articleExpert/delete`,
        name: "删除",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    batchDelete: {
        url: `${config.API_URL}/business/articleExpert/batchDelete`,
        name: "批量删除",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
}